﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace SevenInvaders.LEVEL_GABE
{
    class Level_Gabe
    {

        GabePlayer gabePlayer;
        GabeEnemy gabeEnemy;
        Texture2D background;

        public Level_Gabe(ContentManager Content, GameWindow Window)
        {       
            
            gabePlayer = new GabePlayer(Content.Load<Texture2D>("LEVEL_GABE/naveGabe"), new Vector2(0, 300), 1, Window, Content);
            gabeEnemy = new GabeEnemy(Content.Load<Texture2D>("LEVEL_GABE/inimigoGabe"));
            background = (Content.Load<Texture2D>("LEVEL_GABE/background"));
    }
        public void Update(GameTime gameTime, KeyboardState ks)
        {
            gabePlayer.Update(gameTime, ks);
            //gabeEnemy.Update(gameTime);
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(background, Vector2.Zero, Color.White);
            gabePlayer.Draw(gameTime, spriteBatch);
            //gabeEnemy.Draw(gameTime, spriteBatch);
        }
    }
}